﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Fotobanka
{
    /// <summary>
    /// Trida reprezentujici tabulku Gallery v databazi
    /// </summary>
    public class GalleryObject
    {
        private int id;
        private string name;
        private string description;
        private int user_id;
        private byte lock_version;
        private DateTime created_on;
        private DateTime updated_on;
        private byte hide;
        private string galleryAdmin;
        private int galleryAdminId;

        public int Id
        {
            get
            {
                return id;
            }
            set {
                id = value;
            }
        }

        public string Name
        {
            get {
                return name;
            }
            set {
                name = value;
            }
        }

        public string Description 
        {
            get {
                return description;
            }
            set {
                description = value;
            }
        }

        private int UserId
        {
            get {
                return user_id;
            }
            set {
                user_id = value;
            }
        }

        public byte Lock
        {
            get
            {
                return lock_version;
            }
            set
            {
                lock_version = value;
            }
        }

        public DateTime CreatedOn
        {
            get
            {
                return created_on;
            }
            set
            {
                created_on = value;
            }
        }

        public DateTime UpdatedOn
        {
            get
            {
                return updated_on;
            }
            set
            {
                updated_on = value;
            }
        }
    
        public byte Hidden
        {
            get {
                return hide;
            }
            set {
                hide = value;
            }
        }

        public string GalleryAdmin
        {
            get
            {
                return galleryAdmin;
            }
            set
            {
                galleryAdmin = value;
            }
        }
    
        public int GalleryAdminId
        {
            get {
                return galleryAdminId;
            }
            set {
                galleryAdminId = value;
            }
        }
    }
}
